package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import org.apache.ibatis.annotations.Param;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll();

    int updateByPrimaryKey(StrategyComment record);

    List<StrategyComment> queryForList(QueryObject qo);

    List<StrategyComment> selelctStrategyByState(Integer state);

    List<StrategyComment> selectByStrategyId(Long strategyId);

    List<StrategyComment> listByStrategyId(@Param("strategyId") Long strategyId);

    List<StrategyComment> getCommentByUserId(Long userId);

    List<StrategyComment> queryForLists(StrategyCommentQueryObject qo);

    List<StrategyComment> selectByUserId(StrategyCommentQueryObject qo);


    StrategyComment selectBystrategyCommentId(Long id);

    List<StrategyComment> selectByUserId(@Param("userId") Long userId);
}